package com.xiaoxing.gongqiju.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaoxing.gongqiju.R;
import com.xiaoxing.gongqiju.mvp.ui.entity.LiaoCheng_GongQiJu_ShenQingChuKu;

import java.util.List;

//import me.jessyan.armscomponent.commonres.utils.GlideUtil;


public class LiaoCheng_GongQiJu_ShenQingChuKuTiJiaoShuJuAdapter extends BaseQuickAdapter<LiaoCheng_GongQiJu_ShenQingChuKu.DataBean, BaseViewHolder> {

    private Context mContext;

    public LiaoCheng_GongQiJu_ShenQingChuKuTiJiaoShuJuAdapter(Context context, @Nullable List<LiaoCheng_GongQiJu_ShenQingChuKu.DataBean> data) {
        super(R.layout.item_liao_cheng__gong_qi_ju__shen_qing_chu_ku_ti_jiao_shu_ju, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, LiaoCheng_GongQiJu_ShenQingChuKu.DataBean item) {
        //GlideUtil.loadImage(mContext,item.getImg(),helper.getView(R.id.img_head));
        try {
            helper.setText(R.id.tv_wu_liao_ming_cheng, "物料名称：" + item.getMaterialtoolname());
            helper.setText(R.id.tv_wu_liao_zu_ming_cheng, "物料组名称：" + item.getMaterialGroupName());
            helper.setText(R.id.tv_wu_liao_dan_wei, "物料单位：" + item.getUnit());
            helper.setText(R.id.tv_wu_liao_da_lei_ming_cheng, "物料大类名称：" + item.getMaterialClassName());
            helper.setText(R.id.tv_shen_qing_chu_ku_shu_liang, "申请出库数量：" + item.getSelectNum());
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

}
